<%@ page language="java" import="java.util.*" pageEncoding="utf8" %>
<%@page import="com.niit.bc.bean.ListBean" %>
<%@page import="com.niit.bc.bean.BookBean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="shoplist">

    <c:if test="${listType != null}">
        <c:forEach items="${listType}" var="listType">
            <!-- 这是一个栏目的开始 -->
            <div class="shoplist1">
                <!-- 栏目头 -->
                <div class="title"><h2>${listType.typeName}</h2>
                    <div class="extra">
                        <a href="BookList?typeId=${listType.typeId}&pageCur=1"><font style="color:red">更多&gt;&gt;</font></a>
                    </div>
                </div>
                <div class="clear"></div>
                <!-- 栏目体 -->
                <div class="shoplist1box">
                    <ul>
                        <c:if test="${bookList != null }">
                            <c:forEach items="${bookList}" var="book">
                                <c:if test="${listType.typeId == book.typeId}">
                                    <li><a href="ShowBook?bookId=${book.bookId }" target="_blank"
                                           title="${book.bookName }"><img src="${book.bookPhoto }" width="80"
                                                                          height="100" alt="${book.bookName }"></a>
                                        <div class="clear"></div>
                                        <h5>￥${book.bookPrice }0元</h5>
                                        <span class="brandname"><a
                                                href="ShowBook?bookId=${book.bookId }">${book.bookName }</a></span>
                                    </li>
                                </c:if>
                            </c:forEach>
                        </c:if>
                    </ul>
                </div>
            </div>
            <div class="clear"></div>
            <!-- 这是一个栏目的结束 -->
            <br/>
        </c:forEach>
    </c:if>

</div>
